package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2024/01/05
*/
@Data
@ApiModel("问诊uparcel快递信息")
@Table(name = "tbl_booking_uparcel")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingUparcel extends BaseEntity {
    @Column(name = "booking_id")
    private String bookingId;
    //todo:猜测为定时任务调用生成的code
    @Column(name = "tracking_code")
    private String trackingCode;

    @Column(name = "booking_code")
    private String bookingCode;

    //todo:猜测为定时任务调用填写的交货日期 2024-01-05 00:00:00.000
    @Column(name = "delivery_date")
    private Date deliveryDate;

    //todo:猜测为定时任务调用填写的交货时间 03:00 PM-04:00 PM
    @Column(name = "delivery_time")
    private String deliveryTime;
    //todo:猜测是定时任务调用时修改状态的时候set的时间 2024-01-05 14:43:12.870
    @Column(name = "uparcel_status_update_at")
    private Date uparcelStatusUpdateAt;
    //todo: 猜测为定时任务调用时set的值  Order successfully placed.
    private String remarks;
    //todo:猜测为定时任务调用时set的调用时间 2024-01-05 06:43:12.323
    @Column(name = "request_timing")
    private Date requestTiming;

    @Column(name = "pick_up_time")
    private Date pickUpTime;

    @Column(name = "status_description")
    private String statusDescription;

    /**
     * 分配 = 9
     * 接受工作 = 2
     * 物品已取 = 3
     * 送货 = 5
     * 客户取消 = -6
     * 管理员取消 = -7
     * 代理取消 = -2
     * 未送达 = -1
     * 初次创建时状态为 1 猜测为待确认？
     */
    private Integer status;
    //todo:目前看到取消这个快递时，设置为0了
    @Column(name = "order_sub_status")
    private Integer orderSubStatus;
    //todo:目前看到取消这个快递时，设置为0了
    @Column(name = "order_status")
    private Integer orderStatus;
    //todo:目前看到新生成或者去掉特快时，这个值全都为 6
    @Column(name = "uparcel_delivery_type")
    private Integer uparcelDeliveryType;
    //todo:目前看到新生成或者去掉特快时，这个值全都为 1 Hour Rush
    @Column(name = "uparcel_delivery_type_name")
    private String uparcelDeliveryTypeName;

    @Column(name = "already_push_noti")
    private Integer alreadyPushNoti;

    @Column(name = "parcel_signature")
    private String parcelSignature;

    @Column(name = "parcel_image")
    private String parcelImage;
}